<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<script type="text/javascript">
	$(function() {

		$('#form').form({
			url : '/accountLogType/add',
			onSubmit : function() {
				parent.$.messager.progress({
					title : '提示',
					text : '数据处理中，请稍后....'
				});
				var isValid = $(this).form('validate');
				if (!isValid) {
					parent.$.messager.progress('close');
				}
				return isValid;
			},
			success : function(result) {
				parent.$.messager.progress('close');
				result = $.parseJSON(result);
				if (result.success) {
					parent.$.modalDialog.openner_typeGrid.datagrid('reload');//之所以能在这里调用到parent.$.modalDialog.openner_treeGrid这个对象，是因为resource.jsp页面预定义好了
					parent.$.modalDialog.handler.dialog('close');
				}
			}
		});
		parent.$.messager.progress('close');
	});
</script>
<div class="easyui-layout" data-options="fit:true,border:false">
	<div data-options="region:'center',border:false" title="" style="overflow: hidden;">
		<form id="form" method="post">
			<input type="hidden" name="isDel" value="0" />
			<table class="table table-hover table-condensed">
				<tr>
					<th>平台用户日志类型名称</th>
					<td><input id="iconCls" class="easyui-validatebox" name="name" style="width: 375px; height: 29px;" data-options="editable:false,required:true" /></td>
				</tr>
				<tr>
					<th>备注</th>
					<td><textarea name="remark"  class="span5" style="width: 200px"></textarea></td>
				</tr>
			</table>
		</form>
	</div>
</div>